import request from '@/utils/request'

// 查询非遗戏剧行当汇总列表
export function listBusiness(query) {
  return request({
    url: '/books/business/list',
    method: 'get',
    params: query
  })
}

// 查询非遗戏剧行当汇总详细
export function getBusiness(theatreBusinessId) {
  return request({
    url: '/books/business/' + theatreBusinessId,
    method: 'get'
  })
}

// 新增非遗戏剧行当汇总
export function addBusiness(data) {
  return request({
    url: '/books/business',
    method: 'post',
    data: data
  })
}

// 修改非遗戏剧行当汇总
export function updateBusiness(data) {
  return request({
    url: '/books/business',
    method: 'put',
    data: data
  })
}

// 删除非遗戏剧行当汇总
export function delBusiness(theatreBusinessId) {
  return request({
    url: '/books/business/' + theatreBusinessId,
    method: 'delete'
  })
}
